import { getListAll } from '/@/api/cuisine/specs';
import { BasicColumn } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '规格名称',
    dataIndex: 'specsId',
    width: 120,
    editRule: true,
    editComponent: 'ApiSelect',
    editComponentProps: {
      api: getListAll,
      resultField: 'id',
      labelField: 'name',
      valueField: 'id',
    },
    // edit: true,
    editRow: true,
    editable: true,
  },
  {
    width: 120,
    title: '价格',
    dataIndex: 'money',
    editComponent: 'InputNumber',
    editRule: true,
    // edit: true,
    editRow: true,
    editable: true,
  },
];
